package com.tanglon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanglon.domain.entity.ArticleTag;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * 文章标签关联表(ArticleTag)表数据库访问层
 *
 * @author makejava
 * @since 2025-08-14 16:07:21
 */
public interface ArticleTagMapper extends BaseMapper<ArticleTag> {

    /**
     * 获取TagId
     * @param id
     * @return
     */
    @Select("select tag_id from sg_article_tag where article_id=#{id}")
    List<Long> getTagId(Long id);

}

